package com.telit.firecommand.controller;//package com.telit.firecommand.controller;
//
//import com.telit.constant.Constant;
//import com.telit.entity.DataReturn;
//import com.telit.entity.PageData;
//import com.telit.service.MaterialService;
//import com.telit.vo.GoodsStockVO;
//import com.telit.vo.StoreHouseVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//
///**
// * 防火物资储备API
// *
// * @author yuezhuang
// * @date 2022-10-28
// */
//@Slf4j
//@RequiredArgsConstructor
//@RestController
//@RequestMapping(value = "/material", produces = MediaType.APPLICATION_JSON_VALUE)
//@Api(tags = "防火物资储备API", value = "防火物资储备API", produces = MediaType.APPLICATION_JSON_VALUE)
//public class MaterialController {
//
//    private final MaterialService materialService;
//
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "page", value = "当前页，分页当前页", required = true, paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "limit", value = "分页条数", required = true, paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "storeHouseName", value = "仓库名称", paramType = "query", dataType = "String"),
//    })
//    @ApiOperation(httpMethod = Constant.REQUEST_METHOD_GET, value = "查询仓库列表")
//    @GetMapping(path = "/qry-store-house-list")
//    public DataReturn<List<StoreHouseVO>> getStoreHouseList(@RequestParam(value = "page") Integer page,
//                                                            @RequestParam(value = "limit") Integer limit,
//                                                            @RequestParam(value = "storeHouseName", required = false) String storeHouseName) {
//        return DataReturn.ok(materialService.getStoreHouseList(page, limit, storeHouseName));
//    }
//
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "page", value = "当前页，分页当前页", required = true, paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "limit", value = "分页条数", required = true, paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "goodsName", value = "物资名称", paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "brandName", value = "品牌名称", paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "modelName", value = "型号名称", paramType = "query", dataType = "String"),
//            @ApiImplicitParam(name = "storeHouseID", value = "仓库ID", paramType = "query", dataType = "String"),
//    })
//    @ApiOperation(httpMethod = Constant.REQUEST_METHOD_GET, value = "查询物资库存列表")
//    @GetMapping(path = "/qry-goods-stock-list")
//    public DataReturn<PageData<List<GoodsStockVO>>> getGoodsStockList(@RequestParam(value = "page") Integer page,
//                                                                      @RequestParam(value = "limit") Integer limit,
//                                                                      @RequestParam(value = "goodsName", required = false) String goodsName,
//                                                                      @RequestParam(value = "brandName", required = false) String brandName,
//                                                                      @RequestParam(value = "modelName", required = false) String modelName,
//                                                                      @RequestParam(value = "storeHouseID", required = false) String storeHouseID) {
//        return DataReturn.ok(
//                materialService.getGoodsStockList(page, limit, goodsName, brandName, modelName, storeHouseID));
//    }
//
//}
